<%--
    author: Ivan Holub
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<jsp:include page="common/logo.jsp"/>

<a href="/">Home</a>
<a href="/songList/">Song List</a>
<a href="/artistList/">Artist list</a>
<a href="/about/">About</a>
<c:choose>
    <c:when test="${requestData.signedIn}">
        <c:if test="${requestData.admin}">
            <a href="/admin/">Administration</a>
        </c:if>
        <a href="${requestData.logoutURL}">Sign out</a>
    </c:when>
    <c:otherwise>
        <a href="${requestData.loginURL}">Sign in</a>
    </c:otherwise>
</c:choose>
<c:if test="${requestData.signedIn}">
    <br/>
    Hello, <c:out value="${requestData.userNickname}"/>
</c:if>
<hr/>